<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
    <%@ page import="java.util.*,com.autoMobile.bean.rrmSgjl,com.autoMobile.dao.rrmbxDao" %>
   <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE html>
<html lang="zh">
<head>
    <meta charset="UTF-8">
    <title>事故填报</title>
    <link rel="stylesheet" href="<%=request.getContextPath()%>/css/styles.css">
</head>
<body style="background: transparent;">
    <div class="form-container">
        <h2>事故填报</h2>
        <form action="/javaWeb24_12_war_exploded/addsgjlServlet"  method="post">
            <div class="form-group" >
                <label>事故类型</label>
                <select class="form-control" name="sglx"required>
                    <option value="">请选择事故类型</option>
                    <option>碰撞事故</option>
                    <option>刮蹭事故</option>
                    <option>自然灾害</option>
                    <option>其他</option>
                </select>
            </div>


                        <div class="form-group">
                <label>驾驶员</label>
                <input type="text"  name="jsy"class="form-control" placeholder="请输入驾驶员姓名" required>
            <div class="form-group">
            
<div class="form-group">
    <label>选择车牌号</label>
    <select class="form-control" name="cph" id="sglx" required>
        <option value="">请选择车牌号</option>
        <!-- 使用 JSTL 循环输出车牌号 -->
        <c:forEach var="plate" items="${cph}">
            <option value="${plate.cph}">${plate.cph}</option>
        </c:forEach>
    </select>
</div>
                <label>事故时间</label>
                <input type="datetime-local"  name="sgsj"class="form-control" required>
            </div>
            <div class="form-group">
                <label>事故地点</label>
                <input type="text"  name="sgdd"class="form-control" placeholder="请输入详细地址" required>
            </div>
            <div class="form-group">
                <label>理赔金额</label>
                <input type="text"  name="lpje"class="form-control" placeholder="请输入理赔金额" required>
            </div>
            <div class="form-group">
                <label>详细描述</label>
                <textarea class="form-control"  name="xxms"rows="6" placeholder="请详细描述事故发生经过..." required></textarea>
            </div>
            
            <div class="form-footer">
                <button type="submit" class="btn">提交报告</button>
            </div>
        </form>
    </div>
</body>
</html> 